package org.wu.framework.log.platform.infrastructure.converter;

import org.wu.framework.log.platform.domain.model.request.log.RequestLog;
import org.wu.framework.log.platform.infrastructure.entity.RequestLogDO;
import org.wu.framework.core.mapper.LazyStructMappers;
import org.wu.framework.core.mapper.LazyStructMapper;
/**
 * describe 请求日志 
 *
 * @author Jia wei Wu
 * @date 2024/03/25 04:20 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter 
 **/
@LazyStructMapper
public interface RequestLogConverter {


    /**
     * describe MapStruct 创建的代理对象
     *
     
     
     
     * @author Jia wei Wu
     * @date 2024/03/25 04:20 下午
     **/
    RequestLogConverter INSTANCE =LazyStructMappers.getMapper(RequestLogConverter.class);
    /**
     * describe 实体对象 转换成领域对象
     *
     * @param requestLogDO 请求日志实体对象     
     * @return {@link RequestLog} 请求日志领域对象     
     
     * @author Jia wei Wu
     * @date 2024/03/25 04:20 下午
     **/
    RequestLog toRequestLog(RequestLogDO requestLogDO);
    /**
     * describe 领域对象 转换成实体对象
     *
     * @param requestLog 请求日志领域对象     
     * @return {@link RequestLogDO} 请求日志实体对象     
     
     * @author Jia wei Wu
     * @date 2024/03/25 04:20 下午
     **/
     RequestLogDO fromRequestLog(RequestLog requestLog); 
}